package example.pattern.cor;

import java.util.ArrayList;
import java.util.List;

public class SpecialSupport extends Support {
	private List<Integer> supportedList = new ArrayList<Integer>(); 

	public SpecialSupport(String name, int... number) {
		super(name);
		for (int i : number) {
			supportedList.add(i);
		}
	}

	@Override
	protected boolean resolve(Trouble trouble) {
		if(supportedList.contains(trouble.getNumber())){
			return true;
		}
		return false;
	}

}
